github.com/golang-jwt/jwt/v5.Validator.leeway (field)
5 uses
github.com/golang-jwt/jwt/v5 (current package)
parser_option.go#L40: p.validator.leeway = leeway
validator.go#L38: leeway time.Duration
validator.go#L177: return errorIfFalse(cmp.Before((exp.Time).Add(+v.leeway)), ErrTokenExpired)
validator.go#L198: return errorIfFalse(!cmp.Before(iat.Add(-v.leeway)), ErrTokenUsedBeforeIssued)
validator.go#L219: return errorIfFalse(!cmp.Before(nbf.Add(-v.leeway)), ErrTokenNotValidYet)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |